Skip to content

feat: [SDK-4382] add Capacitor demo app and SDK improvements - #3

Merged
fadi-george merged 34 commits into
mainfrom
fg/examples
Apr 20, 2026
Merged

feat: [SDK-4382] add Capacitor demo app and SDK improvements#3
fadi-george merged 34 commits into
mainfrom
fg/examples

Conversation

@fadi-george

@fadi-george fadi-george commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a full-featured Capacitor demo app (examples/demo/) with React + Ionic UI showcasing all OneSignal SDK features (push, IAM, tags, aliases, emails, SMS, outcomes, triggers, live activities, location, track events)
  • Fixes and improvements to the native Android and iOS plugin layers (nested JSON support, null handling, notification click extraction, async permission APIs)
  • Includes build tooling (setup.sh, run-android.sh, run-ios.sh) and comprehensive build documentation

iOS

Screenshot 2026-04-03 at 3 20 49 PM Screenshot 2026-04-03 at 3 21 03 PM Screenshot 2026-04-03 at 3 42 13 PM Screenshot 2026-04-03 at 4 25 06 PM Screenshot 2026-04-03 at 12 39 48 PM Screenshot 2026-04-03 at 2 51 20 PM

Android

Screenshot 2026-04-03 at 6 43 25 PM Screenshot 2026-04-03 at 6 29 10 PM Screenshot 2026-04-06 at 11 21 44 AM

Motivation

Provides a working reference app for testing and demonstrating the Capacitor SDK, along with bug fixes discovered during development.

Scope

  • New: examples/ directory with demo app, build scripts, and docs
  • Changed: Android plugin (OneSignalCapacitorPlugin.kt) — nested JSON, null safety
  • Changed: iOS plugin (OneSignalCapacitorPlugin.swift) — notification click refactor, IAM event simplification
  • Changed: NotificationsNamespace.ts — async hasPermission
  • Changed: OneSignalCapacitorPlugin.podspec — filename casing fix

Testing

  • Manual testing on Android emulator and iOS simulator
  • Verified push notifications, IAM, tags, aliases, outcomes, triggers, live activities, and location features
  • Confirmed icon generation and adaptive icon cleanup on Android

Checklist

  • Code builds and runs without errors
  • Demo app tested on both platforms
  • Build documentation updated

Made with Cursor

@linear

linear Bot commented Apr 20, 2026

Copy link
Copy Markdown

@fadi-george fadi-george changed the title feat: [SDK-4323] add Capacitor demo app and SDK improvements feat: [SDK-4382] add Capacitor demo app and SDK improvements Apr 20, 2026
@fadi-george
fadi-george merged commit 14e2d7e into main Apr 20, 2026
6 of 9 checks passed
@fadi-george
fadi-george deleted the fg/examples branch April 20, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants